//秒数转为年月日时分秒
let DateFomate = value=>{
    let date = new Date(value);
    let year = date.getUTCFullYear();
    let month = date.getMonth()+1;
    month=month<10?`0${month}`:month;
    let day = date.getDate();
    day=day<10?`0${day}`:day;
    let hour = date.getHours();
    hour=hour<10?`0${hour}`:hour;
    let minute = date.getMinutes();
    minute=minute<10?`0${minute}`:minute;
    let seconds = date.getSeconds();
    seconds=seconds<10?`0${seconds}`:seconds;

    return `${year}-${month}-${day} ${hour}:${minute}:${seconds}`
}


export {DateFomate}